import store from '@/store/index'
import {getItem, setItem} from "@/plugins";
export default function getLanguages (){
    console.log(navigator)
    if (getItem('lang')){
        store.state.lang=getItem('lang')
    }else{

        // 这里添加接口
        store.state.lang = {value:navigator.languages[0],langText:navigator.languages[1]}
        setItem('lang', {value:navigator.languages[0],langText:navigator.languages[1]})
    }

}
